package com.xsy.de.entity;

public class ResultMsg {
    public ResultMsg(){

    }
    private static final long serialVersionUID = 1L;

    private String rtncode;	//返回的消息编码/错误码，参见具体的数据规范 0：成功 非 0：错误编码
    private Object rtninfo;	//如果rtncode=0，这个节点记录正确信息
    private String errmsg;	//如果rtncode<>0，这个节点记录错误信息


    public String getRtncode() {
        return rtncode;
    }
    public void setRtncode(String rtncode) {
        this.rtncode = rtncode;
    }

    public String getErrmsg() {
        return errmsg;
    }
    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultMsg(String rtncode, String errmsg) {
        super();
        this.rtncode = rtncode;
        this.errmsg = errmsg;
    }

    public Object getRtninfo() {
        return rtninfo;
    }
    public void setRtninfo(Object rtninfo) {
        this.rtninfo = rtninfo;
    }
    public ResultMsg(String rtncode, Object rtninfo, String errmsg) {
        super();
        this.rtncode = rtncode;
        this.rtninfo = rtninfo;
        this.errmsg = errmsg;
    }
    @Override
    public String toString() {
        return "ResultMsg [rtncode=" + rtncode + ", rtninfo=" + rtninfo
                + ", errmsg=" + errmsg + "]";
    }
}
